#ifndef CCOMMANDHANDLER_H
#define CCOMMANDHANDLER_H

#include <QObject>
#include "CChatSession.h"
class CCommandHandler : public QObject
{
    Q_OBJECT
public:
    explicit CCommandHandler(QObject *parent = nullptr) : QObject(parent)
    {

    }
    virtual void unknow(CChatSession*session,QByteArray cmd)
    {
        session->push(QString("Unkonw command{%s}%s").arg(cmd.data()).arg(session->terminator.data()).toUtf8());
    }
    virtual void handle(CChatSession*session,QByteArray line)
    {
        unknow(session,line);
    }

signals:

public slots:
};

#endif // CCOMMANDHANDLER_H
